<html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
* Copyright (c) 2008 Sun Microsystems, Inc.
* All rights reserved. 
 * Use is subject to license terms.
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JavaFX Project Tasks: Quick Reference</title>
<link href="nbdocs:/org/netbeans/modules/usersguide/ide.css"  rel="stylesheet" type="text/css">
</head>

<body>
<h2>JavaFX Project Tasks: Quick Reference </h2>
<p><small><a href="#seealso">See Also</a></small></p>
<p>
This topic describes common tasks that you can perform with the JavaFX projects. For more detailed information, click the links in the right column. </p>

<table border="1" cellpadding="5" cellspacing="0" summary="The left column lists the task name. The right column lists the steps to perform.">
  <tr valign="top"> 
    <th scope="col" align="left">To perform this task...</th>
    <th scope="col" align="left">Follow these steps</th>
  </tr>
  <tr valign="top"> 
    <td>Create a new JavaFX  project </td>
    <td><ol>
        <li> Choose File &gt; New Project (Ctrl-Shift-N).
          

</li>
        <li>In the New Project wizard, select JavaFX in the Categories list.</li>
        <li>In the Projects List, select JavaFX Scipt Application and click Next. </li>
        <li>In the Name and Location panel, specify the project's name and location.</li>
    <li>Select Empty Project.</li>
    <li>Set the project as the main project and create the main class file, if so desired.<br>
      See <a href="newjavafxappwiz-nameandloc.html">New JavaFX Application Wizard: Name and Location</a> for more information</li>
    </ol></td>
  </tr>
<tr valign="top">
    <td>Import an existing JavaFX application </td>
    <td><ol>
      <li>Choose File &gt; New Project (Ctrl-Shift-N). </li>
      <li>In the New Project wizard, select JavaFX in the Categories list.</li>
      <li>In the Projects List, select JavaFX Script Application and click Next. </li>
      <li>In the Name and Location panel, specify the project's name and location.</li>
      <li>Select From Sources.</li>
      <li>Click Add Folder to navigate and select the folder that contains your existing source files. </li>
      <li>Set the project as the main project and create the main class file, if so desired.<br>
  See <a href="newjavafxappwiz-nameandloc.html">New JavaFX Application Wizard: Name and Location</a> for more information </li>
      </ol></td>
  </tr>
<tr valign="top">
  <td>Add files to your project</td>
  <td><ol>
    <li>In the Projects window, select the main project node and right-click it.</li>
  <li>Select New and choose the type of file you would like to add.</li>
  <li>In the New File wizard, specify the file name, location, and package.</li>
  <li>Click Finish to create the file.</li>
  </ol></td>
</tr>
<tr valign="top">
  <td>Edit files </td>
  <td><ol>
      <li>In the Projects window, select the node for your project and, if necessary, double-click it to open the node.</li>
      <li>Navigate to the file you want to edit and double-click it to open it in the source editor.</li>
      </ol>
    <p>For more information on the source editor, see <a href="../editing/editing_javafx_source.html">Editing JavaFX Source Files</a>. </p></td>
</tr>
<tr valign="top">
  <td>Set the main project</td>
  <td><ul>
        <li>Right-click the project node and choose Set Main Project.</li>
      </ul></td>
</tr>
<tr valign="top">
  <td>Build a project</td>
  <td><ul>
        <li>Choose Build &gt; <a href="../compile/javafx_comp_project.html">Build Main 
          Project</a> (F11) or right-click any project node and choose Build Project.</li>
      </ul></td>
</tr>
<tr valign="top">
  <td>Run a project </td>
  <td><ul>
        <li>Choose Run &gt; Run Main Project</a> 
          (F6) or right-click any project node and choose Run Project.</li>
      </ul>
	</td>
</tr>
  <tr valign="top"> 
    <td>Debug a project</td>
    <td> 
      <ul>
        <li>Choose Run &gt; <a href="../debug/javafx_debug_about.html">Debug Main Project</a> 
          (Ctrl-F5) or right-click any project and choose Debug Project.<br>
        <b>Note:</b> Only raw Java types will be visible  during the debugging session of a JavaFX project. </li>
      </ul>
    </td>
  </tr>
<tr valign="top"> 
    <td>Profile a project</td>
    <td> 
      <ul>
        <li>Choose Profile &gt; <a href="../profiling/javafx_profile_about.html">Profile Main Project</a> 
          or right-click any project and choose Profile.<br>
        <b>Note:</b> Currently, you can only profile at the project level. </li>
      </ul>
    </td>
  </tr>
<tr valign="top">
  <td>Prepare a project for deployment </td>
  <td><ol>
        <li>Right-click the project's root node and select Properties.</li>
      <li> In the Project Properties dialog window, select the Run category.</li>
        <li>Select the Application Execution Model you would like to use.</li>
        <li>Specify any necessary JVM arguments and click OK.</li>
        <li>In the Projects window, choose Run &gt; Run Main Project</a> 
          (F6) or right-click the root project node and choose Run Project.<br>
          The files you would need to deploy the application can be found in the /dist folder.
        </li>
  </ol>
	  For more  information on the deployment options available, see <a href="../deploy/javafx_deploy_prep.html">Preparing  JavaFX Applications for Deployment </a>.</td>
</tr>
</table>

<dl>
<dt><a name="seealso">See Also</a></dt>
<dd><a href="../about_javafx.html">About JavaFX Applications</a></dd>
</dl>



<hr>

<!-- Start Customer Feedback Link -->
<!-- <p><b>Comments or questions?</b><br>
Use the link below to connect to the Visual Web Development contact page. </p>
  <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
    <param name="viewerActivator" value="javax.help.LinkButton">
    <param name="content" value="http://www.netbeans.org/about/contact_form.html?to=4&subject=Feedback:%20Web%20Application%20Help:%20Component Tasks: Quick Reference">
    <param name="text" value="<html><u><html><u>Click here to send feedback</u></html>">
         <param name="textFontSize" value="medium">
        <param name="textColor" value="blue">
   </object><br> --> 
<!-- End Customer Feedback Link -->
  <small><a href="../credits.html">Legal Notices</a></small> 
<table cellpadding="50" border="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

